Formalizing Soundness of Contextual Effects

نویسندگان

  • Polyvios Pratikakis
  • Jeffrey S. Foster
  • Michael Hicks
  • Iulian Neamtiu
چکیده

A contextual effect system generalizes standard type and effect systems: where a standard effect system computes the effect of an expression e, a contextual effect system additionally computes the prior and future effect of e, which characterize the behavior of computation prior to and following, respectively, the evaluation of e. This paper describes the formalization and proof of soundness of contextual effects, which we mechanized using the Coq proof assistant. Contextual effect soundness is an unusual property because the prior and future effect of a term e depends not on e itself (or its evaluation), but rather on the evaluation of the context in which e appears. Therefore, to state and prove soundness we must “match up” a subterm in the original typing derivation with the possibly-many evaluations of that subterm during the evaluation of the program, in a way that is robust under substitution. We do this using a novel typed operational semantics. We conjecture that our approach could prove useful for reasoning about other properties of derivations that rely on the context in which that derivation appears.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Formalizing and Verifying Semantic Type Soundness of a Simple Compiler (Preliminary Report)

We describe a semantic type soundness result, formalized in the Coq proof assistant, for a compiler from a simple imperative language with heap-allocated data into an idealized assembly language. Types in the high-level language are interpreted as binary relations, built using both second-order quantification and a form of separation structure, over stores and code pointers in the low-level mac...

متن کامل

The Effects of Gating Systems on the Soundness of Lost Foam Casting (LFC) Process of Al-Si Alloy (A.413.0)

The effects of gating systems, number of runner, and their locations, in the Lost Foam Casting (LFC) of Aluminum alloy (A.413.0) were investigated. Six different gating systems, with one or two running systems were designed. X-ray radiography and the three axis-bending tests have been employed to evaluate the casting soundness and quality. The results revealed that gating systems have a major e...

متن کامل

A Quantifier-Free String Theory for ALOGTIME Reasoning by

A Quantifier-Free String Theory for ALOGTIME Reasoning François Pitt Doctor of Philosophy Graduate Department of Computer Science University of Toronto 2000 The main contribution of this work is the definition of a quantifier-free string theory T1 suitable for formalizing ALOGTIME reasoning. After describing L1—a new, simple, algebraic characterization of the complexity class ALOGTIME based on ...

متن کامل

A Quantifier-Free String Theory for ALOGTIME Reasoning

A Quantifier-Free String Theory for ALOGTIME Reasoning François Pitt Doctor of Philosophy Graduate Department of Computer Science University of Toronto 2000 The main contribution of this work is the definition of a quantifier-free string theory T1 suitable for formalizing ALOGTIME reasoning. After describing L1—a new, simple, algebraic characterization of the complexity class ALOGTIME based on ...

متن کامل

Scopes Describe Frames: A Uniform Model for Memory Layout in Dynamic Semantics (Artifact)

Our paper introduces a systematic approach to the alignment of names in the static structure of a program, and memory layout and access during its execution. We develop a uniform memory model consisting of frames that instantiate the scopes in the scope graph of a program. This provides a languageindependent correspondence between static scopes and run-time memory layout, and between static res...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2008